Integrand size = 23, antiderivative size = 194 \[ \int \cos ^{\frac {9}{2}}(c+d x) (a+b \sec (c+d x))^3 \, dx=\frac {2 a \left (7 a^2+27 b^2\right ) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{15 d}+\frac {2 b \left (15 a^2+7 b^2\right ) \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{21 d}+\frac {2 b \left (15 a^2+7 b^2\right ) \sqrt {\cos (c+d x)} \sin (c+d x)}{21 d}+\frac {2 a \left (7 a^2+27 b^2\right ) \cos ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{45 d}+\frac {40 a^2 b \cos ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{63 d}+\frac {2 a^2 \cos ^{\frac {7}{2}}(c+d x) (a+b \sec (c+d x)) \sin (c+d x)}{9 d} \]
2/15*a*(7*a^2+27*b^2)*(cos(1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*Elli pticE(sin(1/2*d*x+1/2*c),2^(1/2))/d+2/21*b*(15*a^2+7*b^2)*(cos(1/2*d*x+1/2 *c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*EllipticF(sin(1/2*d*x+1/2*c),2^(1/2))/d+2/ 45*a*(7*a^2+27*b^2)*cos(d*x+c)^(3/2)*sin(d*x+c)/d+40/63*a^2*b*cos(d*x+c)^( 5/2)*sin(d*x+c)/d+2/9*a^2*cos(d*x+c)^(7/2)*(a+b*sec(d*x+c))*sin(d*x+c)/d+2 /21*b*(15*a^2+7*b^2)*sin(d*x+c)*cos(d*x+c)^(1/2)/d
Time = 1.68 (sec) , antiderivative size = 137, normalized size of antiderivative = 0.71 \[ \int \cos ^{\frac {9}{2}}(c+d x) (a+b \sec (c+d x))^3 \, dx=\frac {84 \left (7 a^3+27 a b^2\right ) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )+60 \left (15 a^2 b+7 b^3\right ) \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )+\sqrt {\cos (c+d x)} \left (7 a \left (43 a^2+108 b^2\right ) \cos (c+d x)+5 \left (234 a^2 b+84 b^3+54 a^2 b \cos (2 (c+d x))+7 a^3 \cos (3 (c+d x))\right )\right ) \sin (c+d x)}{630 d} \]
(84*(7*a^3 + 27*a*b^2)*EllipticE[(c + d*x)/2, 2] + 60*(15*a^2*b + 7*b^3)*E llipticF[(c + d*x)/2, 2] + Sqrt[Cos[c + d*x]]*(7*a*(43*a^2 + 108*b^2)*Cos[ c + d*x] + 5*(234*a^2*b + 84*b^3 + 54*a^2*b*Cos[2*(c + d*x)] + 7*a^3*Cos[3 *(c + d*x)]))*Sin[c + d*x])/(630*d)
Time = 1.49 (sec) , antiderivative size = 243, normalized size of antiderivative = 1.25, number of steps used = 20, number of rules used = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.870, Rules used = {3042, 4752, 3042, 4328, 27, 3042, 4535, 3042, 4256, 3042, 4258, 3042, 3119, 4533, 3042, 4256, 3042, 4258, 3042, 3120}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \cos ^{\frac {9}{2}}(c+d x) (a+b \sec (c+d x))^3 \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \sin \left (c+d x+\frac {\pi }{2}\right )^{9/2} \left (a+b \csc \left (c+d x+\frac {\pi }{2}\right )\right )^3dx\) |
\(\Big \downarrow \) 4752 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \int \frac {(a+b \sec (c+d x))^3}{\sec ^{\frac {9}{2}}(c+d x)}dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \int \frac {\left (a+b \csc \left (c+d x+\frac {\pi }{2}\right )\right )^3}{\csc \left (c+d x+\frac {\pi }{2}\right )^{9/2}}dx\) |
\(\Big \downarrow \) 4328 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {2}{9} \int \frac {20 b a^2+\left (7 a^2+27 b^2\right ) \sec (c+d x) a+b \left (5 a^2+9 b^2\right ) \sec ^2(c+d x)}{2 \sec ^{\frac {7}{2}}(c+d x)}dx+\frac {2 a^2 \sin (c+d x) (a+b \sec (c+d x))}{9 d \sec ^{\frac {7}{2}}(c+d x)}\right )\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{9} \int \frac {20 b a^2+\left (7 a^2+27 b^2\right ) \sec (c+d x) a+b \left (5 a^2+9 b^2\right ) \sec ^2(c+d x)}{\sec ^{\frac {7}{2}}(c+d x)}dx+\frac {2 a^2 \sin (c+d x) (a+b \sec (c+d x))}{9 d \sec ^{\frac {7}{2}}(c+d x)}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{9} \int \frac {20 b a^2+\left (7 a^2+27 b^2\right ) \csc \left (c+d x+\frac {\pi }{2}\right ) a+b \left (5 a^2+9 b^2\right ) \csc \left (c+d x+\frac {\pi }{2}\right )^2}{\csc \left (c+d x+\frac {\pi }{2}\right )^{7/2}}dx+\frac {2 a^2 \sin (c+d x) (a+b \sec (c+d x))}{9 d \sec ^{\frac {7}{2}}(c+d x)}\right )\) |
\(\Big \downarrow \) 4535 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{9} \left (a \left (7 a^2+27 b^2\right ) \int \frac {1}{\sec ^{\frac {5}{2}}(c+d x)}dx+\int \frac {20 b a^2+b \left (5 a^2+9 b^2\right ) \sec ^2(c+d x)}{\sec ^{\frac {7}{2}}(c+d x)}dx\right )+\frac {2 a^2 \sin (c+d x) (a+b \sec (c+d x))}{9 d \sec ^{\frac {7}{2}}(c+d x)}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{9} \left (a \left (7 a^2+27 b^2\right ) \int \frac {1}{\csc \left (c+d x+\frac {\pi }{2}\right )^{5/2}}dx+\int \frac {20 b a^2+b \left (5 a^2+9 b^2\right ) \csc \left (c+d x+\frac {\pi }{2}\right )^2}{\csc \left (c+d x+\frac {\pi }{2}\right )^{7/2}}dx\right )+\frac {2 a^2 \sin (c+d x) (a+b \sec (c+d x))}{9 d \sec ^{\frac {7}{2}}(c+d x)}\right )\) |
\(\Big \downarrow \) 4256 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{9} \left (\int \frac {20 b a^2+b \left (5 a^2+9 b^2\right ) \csc \left (c+d x+\frac {\pi }{2}\right )^2}{\csc \left (c+d x+\frac {\pi }{2}\right )^{7/2}}dx+a \left (7 a^2+27 b^2\right ) \left (\frac {3}{5} \int \frac {1}{\sqrt {\sec (c+d x)}}dx+\frac {2 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}\right )\right )+\frac {2 a^2 \sin (c+d x) (a+b \sec (c+d x))}{9 d \sec ^{\frac {7}{2}}(c+d x)}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{9} \left (\int \frac {20 b a^2+b \left (5 a^2+9 b^2\right ) \csc \left (c+d x+\frac {\pi }{2}\right )^2}{\csc \left (c+d x+\frac {\pi }{2}\right )^{7/2}}dx+a \left (7 a^2+27 b^2\right ) \left (\frac {3}{5} \int \frac {1}{\sqrt {\csc \left (c+d x+\frac {\pi }{2}\right )}}dx+\frac {2 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}\right )\right )+\frac {2 a^2 \sin (c+d x) (a+b \sec (c+d x))}{9 d \sec ^{\frac {7}{2}}(c+d x)}\right )\) |
\(\Big \downarrow \) 4258 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{9} \left (\int \frac {20 b a^2+b \left (5 a^2+9 b^2\right ) \csc \left (c+d x+\frac {\pi }{2}\right )^2}{\csc \left (c+d x+\frac {\pi }{2}\right )^{7/2}}dx+a \left (7 a^2+27 b^2\right ) \left (\frac {3}{5} \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \int \sqrt {\cos (c+d x)}dx+\frac {2 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}\right )\right )+\frac {2 a^2 \sin (c+d x) (a+b \sec (c+d x))}{9 d \sec ^{\frac {7}{2}}(c+d x)}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{9} \left (\int \frac {20 b a^2+b \left (5 a^2+9 b^2\right ) \csc \left (c+d x+\frac {\pi }{2}\right )^2}{\csc \left (c+d x+\frac {\pi }{2}\right )^{7/2}}dx+a \left (7 a^2+27 b^2\right ) \left (\frac {3}{5} \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \int \sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}dx+\frac {2 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}\right )\right )+\frac {2 a^2 \sin (c+d x) (a+b \sec (c+d x))}{9 d \sec ^{\frac {7}{2}}(c+d x)}\right )\) |
\(\Big \downarrow \) 3119 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{9} \left (\int \frac {20 b a^2+b \left (5 a^2+9 b^2\right ) \csc \left (c+d x+\frac {\pi }{2}\right )^2}{\csc \left (c+d x+\frac {\pi }{2}\right )^{7/2}}dx+a \left (7 a^2+27 b^2\right ) \left (\frac {2 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {6 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}\right )\right )+\frac {2 a^2 \sin (c+d x) (a+b \sec (c+d x))}{9 d \sec ^{\frac {7}{2}}(c+d x)}\right )\) |
\(\Big \downarrow \) 4533 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{9} \left (\frac {9}{7} b \left (15 a^2+7 b^2\right ) \int \frac {1}{\sec ^{\frac {3}{2}}(c+d x)}dx+a \left (7 a^2+27 b^2\right ) \left (\frac {2 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {6 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}\right )+\frac {40 a^2 b \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}\right )+\frac {2 a^2 \sin (c+d x) (a+b \sec (c+d x))}{9 d \sec ^{\frac {7}{2}}(c+d x)}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{9} \left (\frac {9}{7} b \left (15 a^2+7 b^2\right ) \int \frac {1}{\csc \left (c+d x+\frac {\pi }{2}\right )^{3/2}}dx+a \left (7 a^2+27 b^2\right ) \left (\frac {2 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {6 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}\right )+\frac {40 a^2 b \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}\right )+\frac {2 a^2 \sin (c+d x) (a+b \sec (c+d x))}{9 d \sec ^{\frac {7}{2}}(c+d x)}\right )\) |
\(\Big \downarrow \) 4256 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{9} \left (\frac {9}{7} b \left (15 a^2+7 b^2\right ) \left (\frac {1}{3} \int \sqrt {\sec (c+d x)}dx+\frac {2 \sin (c+d x)}{3 d \sqrt {\sec (c+d x)}}\right )+a \left (7 a^2+27 b^2\right ) \left (\frac {2 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {6 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}\right )+\frac {40 a^2 b \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}\right )+\frac {2 a^2 \sin (c+d x) (a+b \sec (c+d x))}{9 d \sec ^{\frac {7}{2}}(c+d x)}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{9} \left (\frac {9}{7} b \left (15 a^2+7 b^2\right ) \left (\frac {1}{3} \int \sqrt {\csc \left (c+d x+\frac {\pi }{2}\right )}dx+\frac {2 \sin (c+d x)}{3 d \sqrt {\sec (c+d x)}}\right )+a \left (7 a^2+27 b^2\right ) \left (\frac {2 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {6 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}\right )+\frac {40 a^2 b \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}\right )+\frac {2 a^2 \sin (c+d x) (a+b \sec (c+d x))}{9 d \sec ^{\frac {7}{2}}(c+d x)}\right )\) |
\(\Big \downarrow \) 4258 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{9} \left (\frac {9}{7} b \left (15 a^2+7 b^2\right ) \left (\frac {1}{3} \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \int \frac {1}{\sqrt {\cos (c+d x)}}dx+\frac {2 \sin (c+d x)}{3 d \sqrt {\sec (c+d x)}}\right )+a \left (7 a^2+27 b^2\right ) \left (\frac {2 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {6 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}\right )+\frac {40 a^2 b \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}\right )+\frac {2 a^2 \sin (c+d x) (a+b \sec (c+d x))}{9 d \sec ^{\frac {7}{2}}(c+d x)}\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{9} \left (\frac {9}{7} b \left (15 a^2+7 b^2\right ) \left (\frac {1}{3} \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \int \frac {1}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )}}dx+\frac {2 \sin (c+d x)}{3 d \sqrt {\sec (c+d x)}}\right )+a \left (7 a^2+27 b^2\right ) \left (\frac {2 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {6 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}\right )+\frac {40 a^2 b \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}\right )+\frac {2 a^2 \sin (c+d x) (a+b \sec (c+d x))}{9 d \sec ^{\frac {7}{2}}(c+d x)}\right )\) |
\(\Big \downarrow \) 3120 |
\(\displaystyle \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {1}{9} \left (\frac {9}{7} b \left (15 a^2+7 b^2\right ) \left (\frac {2 \sin (c+d x)}{3 d \sqrt {\sec (c+d x)}}+\frac {2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 d}\right )+a \left (7 a^2+27 b^2\right ) \left (\frac {2 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {6 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}\right )+\frac {40 a^2 b \sin (c+d x)}{7 d \sec ^{\frac {5}{2}}(c+d x)}\right )+\frac {2 a^2 \sin (c+d x) (a+b \sec (c+d x))}{9 d \sec ^{\frac {7}{2}}(c+d x)}\right )\) |
Sqrt[Cos[c + d*x]]*Sqrt[Sec[c + d*x]]*((2*a^2*(a + b*Sec[c + d*x])*Sin[c + d*x])/(9*d*Sec[c + d*x]^(7/2)) + ((40*a^2*b*Sin[c + d*x])/(7*d*Sec[c + d* x]^(5/2)) + a*(7*a^2 + 27*b^2)*((6*Sqrt[Cos[c + d*x]]*EllipticE[(c + d*x)/ 2, 2]*Sqrt[Sec[c + d*x]])/(5*d) + (2*Sin[c + d*x])/(5*d*Sec[c + d*x]^(3/2) )) + (9*b*(15*a^2 + 7*b^2)*((2*Sqrt[Cos[c + d*x]]*EllipticF[(c + d*x)/2, 2 ]*Sqrt[Sec[c + d*x]])/(3*d) + (2*Sin[c + d*x])/(3*d*Sqrt[Sec[c + d*x]])))/ 7)/9)
3.9.10.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticE[(1/2)* (c - Pi/2 + d*x), 2], x] /; FreeQ[{c, d}, x]
Int[1/Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/d)*EllipticF[(1/2 )*(c - Pi/2 + d*x), 2], x] /; FreeQ[{c, d}, x]
Int[(csc[(c_.) + (d_.)*(x_)]*(b_.))^(n_), x_Symbol] :> Simp[Cos[c + d*x]*(( b*Csc[c + d*x])^(n + 1)/(b*d*n)), x] + Simp[(n + 1)/(b^2*n) Int[(b*Csc[c + d*x])^(n + 2), x], x] /; FreeQ[{b, c, d}, x] && LtQ[n, -1] && IntegerQ[2* n]
Int[(csc[(c_.) + (d_.)*(x_)]*(b_.))^(n_), x_Symbol] :> Simp[(b*Csc[c + d*x] )^n*Sin[c + d*x]^n Int[1/Sin[c + d*x]^n, x], x] /; FreeQ[{b, c, d}, x] && EqQ[n^2, 1/4]
Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + ( a_))^(m_), x_Symbol] :> Simp[a^2*Cot[e + f*x]*(a + b*Csc[e + f*x])^(m - 2)* ((d*Csc[e + f*x])^n/(f*n)), x] - Simp[1/(d*n) Int[(a + b*Csc[e + f*x])^(m - 3)*(d*Csc[e + f*x])^(n + 1)*Simp[a^2*b*(m - 2*n - 2) - a*(3*b^2*n + a^2* (n + 1))*Csc[e + f*x] - b*(b^2*n + a^2*(m + n - 1))*Csc[e + f*x]^2, x], x], x] /; FreeQ[{a, b, d, e, f}, x] && NeQ[a^2 - b^2, 0] && GtQ[m, 2] && ((Int egerQ[m] && LtQ[n, -1]) || (IntegersQ[m + 1/2, 2*n] && LeQ[n, -1]))
Int[(csc[(e_.) + (f_.)*(x_)]*(b_.))^(m_.)*(csc[(e_.) + (f_.)*(x_)]^2*(C_.) + (A_)), x_Symbol] :> Simp[A*Cot[e + f*x]*((b*Csc[e + f*x])^m/(f*m)), x] + Simp[(C*m + A*(m + 1))/(b^2*m) Int[(b*Csc[e + f*x])^(m + 2), x], x] /; Fr eeQ[{b, e, f, A, C}, x] && NeQ[C*m + A*(m + 1), 0] && LeQ[m, -1]
Int[(csc[(e_.) + (f_.)*(x_)]*(b_.))^(m_.)*((A_.) + csc[(e_.) + (f_.)*(x_)]* (B_.) + csc[(e_.) + (f_.)*(x_)]^2*(C_.)), x_Symbol] :> Simp[B/b Int[(b*Cs c[e + f*x])^(m + 1), x], x] + Int[(b*Csc[e + f*x])^m*(A + C*Csc[e + f*x]^2) , x] /; FreeQ[{b, e, f, A, B, C, m}, x]
Int[(u_)*((c_.)*sin[(a_.) + (b_.)*(x_)])^(m_.), x_Symbol] :> Simp[(c*Csc[a + b*x])^m*(c*Sin[a + b*x])^m Int[ActivateTrig[u]/(c*Csc[a + b*x])^m, x], x] /; FreeQ[{a, b, c, m}, x] && !IntegerQ[m] && KnownSecantIntegrandQ[u, x ]
Leaf count of result is larger than twice the leaf count of optimal. \(469\) vs. \(2(226)=452\).
Time = 165.94 (sec) , antiderivative size = 470, normalized size of antiderivative = 2.42
method | result | size |
default | \(-\frac {2 \sqrt {\left (2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \left (-1120 a^{3} \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{10}+\left (2240 a^{3}+2160 a^{2} b \right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{8} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+\left (-2072 a^{3}-3240 a^{2} b -1512 a \,b^{2}\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{6} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+\left (952 a^{3}+2520 a^{2} b +1512 a \,b^{2}+420 b^{3}\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+\left (-168 a^{3}-720 a^{2} b -378 a \,b^{2}-210 b^{3}\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+225 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, a^{2} b +105 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, b^{3}-147 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \operatorname {EllipticE}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, a^{3}-567 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \operatorname {EllipticE}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \sqrt {2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, a \,b^{2}\right )}{315 \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, d}\) | \(470\) |
-2/315*((2*cos(1/2*d*x+1/2*c)^2-1)*sin(1/2*d*x+1/2*c)^2)^(1/2)*(-1120*a^3* cos(1/2*d*x+1/2*c)*sin(1/2*d*x+1/2*c)^10+(2240*a^3+2160*a^2*b)*sin(1/2*d*x +1/2*c)^8*cos(1/2*d*x+1/2*c)+(-2072*a^3-3240*a^2*b-1512*a*b^2)*sin(1/2*d*x +1/2*c)^6*cos(1/2*d*x+1/2*c)+(952*a^3+2520*a^2*b+1512*a*b^2+420*b^3)*sin(1 /2*d*x+1/2*c)^4*cos(1/2*d*x+1/2*c)+(-168*a^3-720*a^2*b-378*a*b^2-210*b^3)* sin(1/2*d*x+1/2*c)^2*cos(1/2*d*x+1/2*c)+225*(sin(1/2*d*x+1/2*c)^2)^(1/2)*E llipticF(cos(1/2*d*x+1/2*c),2^(1/2))*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*a^2* b+105*(sin(1/2*d*x+1/2*c)^2)^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))*( 2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*b^3-147*(sin(1/2*d*x+1/2*c)^2)^(1/2)*Ellip ticE(cos(1/2*d*x+1/2*c),2^(1/2))*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*a^3-567* (sin(1/2*d*x+1/2*c)^2)^(1/2)*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2))*(2*sin( 1/2*d*x+1/2*c)^2-1)^(1/2)*a*b^2)/(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2* c)^2)^(1/2)/sin(1/2*d*x+1/2*c)/(2*cos(1/2*d*x+1/2*c)^2-1)^(1/2)/d
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.12 (sec) , antiderivative size = 227, normalized size of antiderivative = 1.17 \[ \int \cos ^{\frac {9}{2}}(c+d x) (a+b \sec (c+d x))^3 \, dx=\frac {2 \, {\left (35 \, a^{3} \cos \left (d x + c\right )^{3} + 135 \, a^{2} b \cos \left (d x + c\right )^{2} + 225 \, a^{2} b + 105 \, b^{3} + 7 \, {\left (7 \, a^{3} + 27 \, a b^{2}\right )} \cos \left (d x + c\right )\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - 15 \, \sqrt {2} {\left (15 i \, a^{2} b + 7 i \, b^{3}\right )} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) - 15 \, \sqrt {2} {\left (-15 i \, a^{2} b - 7 i \, b^{3}\right )} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) - 21 \, \sqrt {2} {\left (-7 i \, a^{3} - 27 i \, a b^{2}\right )} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) - 21 \, \sqrt {2} {\left (7 i \, a^{3} + 27 i \, a b^{2}\right )} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right )}{315 \, d} \]
1/315*(2*(35*a^3*cos(d*x + c)^3 + 135*a^2*b*cos(d*x + c)^2 + 225*a^2*b + 1 05*b^3 + 7*(7*a^3 + 27*a*b^2)*cos(d*x + c))*sqrt(cos(d*x + c))*sin(d*x + c ) - 15*sqrt(2)*(15*I*a^2*b + 7*I*b^3)*weierstrassPInverse(-4, 0, cos(d*x + c) + I*sin(d*x + c)) - 15*sqrt(2)*(-15*I*a^2*b - 7*I*b^3)*weierstrassPInv erse(-4, 0, cos(d*x + c) - I*sin(d*x + c)) - 21*sqrt(2)*(-7*I*a^3 - 27*I*a *b^2)*weierstrassZeta(-4, 0, weierstrassPInverse(-4, 0, cos(d*x + c) + I*s in(d*x + c))) - 21*sqrt(2)*(7*I*a^3 + 27*I*a*b^2)*weierstrassZeta(-4, 0, w eierstrassPInverse(-4, 0, cos(d*x + c) - I*sin(d*x + c))))/d
Timed out. \[ \int \cos ^{\frac {9}{2}}(c+d x) (a+b \sec (c+d x))^3 \, dx=\text {Timed out} \]
\[ \int \cos ^{\frac {9}{2}}(c+d x) (a+b \sec (c+d x))^3 \, dx=\int { {\left (b \sec \left (d x + c\right ) + a\right )}^{3} \cos \left (d x + c\right )^{\frac {9}{2}} \,d x } \]
\[ \int \cos ^{\frac {9}{2}}(c+d x) (a+b \sec (c+d x))^3 \, dx=\int { {\left (b \sec \left (d x + c\right ) + a\right )}^{3} \cos \left (d x + c\right )^{\frac {9}{2}} \,d x } \]
Time = 14.50 (sec) , antiderivative size = 178, normalized size of antiderivative = 0.92 \[ \int \cos ^{\frac {9}{2}}(c+d x) (a+b \sec (c+d x))^3 \, dx=\frac {2\,b^3\,\mathrm {F}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )}{3\,d}+\frac {2\,b^3\,\sqrt {\cos \left (c+d\,x\right )}\,\sin \left (c+d\,x\right )}{3\,d}-\frac {2\,a^3\,{\cos \left (c+d\,x\right )}^{11/2}\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (\frac {1}{2},\frac {11}{4};\ \frac {15}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{11\,d\,\sqrt {{\sin \left (c+d\,x\right )}^2}}-\frac {6\,a\,b^2\,{\cos \left (c+d\,x\right )}^{7/2}\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (\frac {1}{2},\frac {7}{4};\ \frac {11}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{7\,d\,\sqrt {{\sin \left (c+d\,x\right )}^2}}-\frac {2\,a^2\,b\,{\cos \left (c+d\,x\right )}^{9/2}\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (\frac {1}{2},\frac {9}{4};\ \frac {13}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{3\,d\,\sqrt {{\sin \left (c+d\,x\right )}^2}} \]
(2*b^3*ellipticF(c/2 + (d*x)/2, 2))/(3*d) + (2*b^3*cos(c + d*x)^(1/2)*sin( c + d*x))/(3*d) - (2*a^3*cos(c + d*x)^(11/2)*sin(c + d*x)*hypergeom([1/2, 11/4], 15/4, cos(c + d*x)^2))/(11*d*(sin(c + d*x)^2)^(1/2)) - (6*a*b^2*cos (c + d*x)^(7/2)*sin(c + d*x)*hypergeom([1/2, 7/4], 11/4, cos(c + d*x)^2))/ (7*d*(sin(c + d*x)^2)^(1/2)) - (2*a^2*b*cos(c + d*x)^(9/2)*sin(c + d*x)*hy pergeom([1/2, 9/4], 13/4, cos(c + d*x)^2))/(3*d*(sin(c + d*x)^2)^(1/2))